<template>
  <div>
    <h2 @click="fn(1, $event)">自定义事件传值： 父的值是{{ count }}</h2>

    <Child @changeCount="count += $event" />
    <hr/>
  </div>
</template>

<script>
import Child from "./Child";
export default {
  name: "Event",
  components: {
    Child,
  },
  data() {
    return {
      count: 0,
    };
  },
  methods: {
    clickHandleee(n) {
      this.count += n;
    },
  },
};
</script>

<style scoped>

</style>